<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<title>后台登录</title>
<link type="text/css" rel="stylesheet" href="${base!}/css/index.css" />
    <script type="text/javascript" src="${base!}/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="${base!}/js/jquery.easyui.min-1.2.0.js"></script>
     <script src="${base!}/js/Cookie.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {

            //登录
            $("#btnLogin").click(function() {
                var username = document.getElementById("username").value;
                var password = document.getElementById("password").value;

                loginSys(username, password);
            });

            $("#aboutSys").click(function() {
            	document.getElementById("username").value="";
            	document.getElementById("password").value="";
                
            });
        });

        //登陆操作方法
        function loginSys(username, password) {
        	
 
           
                         $.ajax({
                             type: "POST",
                             dataType: "json",
                             //cache:true,
                             url: "${base!}/login/ajaxPassword.html",
                             data: { "registName": username, "password": password },
                             success: function(json) {
                                 if (json.msg == "success") {
                                	 window.location = "${base!}/admin/index.html";
                                 }
                                 else {
                                     $.messager.alert('错误', '账号或密码错误!', 'error');
                                 }
                             },
                             error: function() {
                                 $.messager.alert('错误', '获取账号信息失败...请联系管理员!', 'error');
                             }
                         });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

    <div class="limit_d">
    <div class="imglogo"> </div>
    <div class="box">
        <div class="title_b">
        后台登录
        </div>
        <div class="main_t">
            <ul>
                <li><p>用户名：</p><input id="username" runat="server" type="text" value="" class="y_put" /></li>
                <li><p>密 码：</p><input id="password" runat="server" type="password" value="" class="y_put" /></li>

                <li style="text-align:center;">
                	<input id="btnLogin" class="btnsubmit" runat="server" value="确定" onclick=""/>
                    <input id="btncancel" class="btncancel" runat="server" value="取消" onclick=""/>
                </li>
            </ul>
        </div>
    </div>
	 
	<div class="divline"></div>
	<div class="logocopyright">
	<p> </p>
    	<p> </p>	</div>
    </div>
    
    </form>
</body>
</html>